package cn.szzsi.common.model;



import cn.szzsi.common.model.base.BasePics;

import java.util.List;

/**
 * Created by admin on 2016/12/14.
 */
//@TableBind(tableName = "b_pics", pkName = "id")
public class Pics extends BasePics<Pics> {
    public static final Pics me = new Pics().dao();

    public List<PicsItem> getValuesBysid(String sid){
        List<PicsItem> list = PicsItem.me.find("select * from mall_pics_item where pics_id = ? order by 'order' desc",sid);
        return list;
    }

    public void getValues(){
        List<PicsItem> list = getValuesBysid(this.getStr("id"));
        this.put("nums",list.size());
    }
}
